// 导入配置好的axios
import axios from './index'

import {getNowPlaying, getComing, getFilmInfo, getCities, getCinemaList, getCinemaFilms, getCinemaFilmSchedules, getCinemaInfo} from '@/request/api'

// 正在热映 
export function NowPlaying(aaa) {
    return axios(getNowPlaying + aaa)
}

// 即将上映 
export function Coming(aaa) {
    return axios(getComing + aaa)
}

// 电影详情
export function FilmInfo(id) {
    return axios(getFilmInfo + '?filmId='+id)
}

// 城市
export function Cities() {
    return axios(getCities)
}

// 影院列表
export function CinemaList(id) {
    return axios(getCinemaList + '?' + 'cityId' + '=' + id)
}

// 影院详情
export function CinemaInfo(id) {
    return axios(getCinemaInfo + '?' + 'cinemaId' + '=' + id)
}

// 排片详情
export function CinemaFilms(aa) {
    return axios(getCinemaFilms + '?' + 'cinemaId' + '=' + aa)
}

// 影片场次
export function FilmSchedules(a,b) {
    return axios(getCinemaFilmSchedules + '?'  + 'cinemaId' + '=' + a + '&' + 'filmId' + '=' + b )
}


// 登录
// export function Logina(a,b) {
//     return axios(Logon + '?' + 'username' + '=' + a + 'password' + '=' + b)
// }